package com.egghiro.framework.j2se.game.model.shape;


public class SVector2D {
    protected double x;
    protected double y;

    public SVector2D() {

    }

    public SVector2D(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public void reset(SVector2D other) {
        reset(other.getX(), other.getY());
    }

    public void reset(double x, double y) {
        this.x = x;
        this.y = y;
    }

}
